package com.homedo.odin.solution.model.request.pc.collect;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

@ApiModel(description = "PC_收藏栏目资讯")
@JsonIgnoreProperties(ignoreUnknown = true)
@Getter
@Setter
public class UserCollectColumnRequestBean {

    @ApiModelProperty(value = "用户ID", required = true)
    @NotNull(message = "用户ID不能为空")
    @Min(message = "用户ID非法", value = 0)
    private Integer userId;

    @ApiModelProperty(value = "提交开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    @ApiModelProperty(value = "提交结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    @ApiModelProperty(value = "当前页码", required = true)
    @NotNull(message = "当前页码参数不能为空")
    @Min(value = 0, message = "当前页码非法参数")
    private Integer pageNum;

    @ApiModelProperty(value = "每页数量", required = true)
    @NotNull(message = "每页数量不能为空")
    @Min(value = 0, message = "每页数量参数错误")
    private Integer pageSize;

}
